package me.heyclock.hl.recordwriter.bean;

import me.heyclock.hl.recordwriter.R;
import me.heyclock.hl.recordwriter.anotation.NotProguard;

@NotProguard
public class HomeFunctionBean {
    private int functionId;
    private String functionName;
    private int functionForImg = R.mipmap.ic_launcher;
    private int functionBackImg = R.mipmap.ic_launcher;
    private int imgW = 200;
    private int imgH = 200;
    private int backColor = R.color.me_white;
    private Class functionGoView;

    private HomeFunctionBean(){}
    public HomeFunctionBean(int functionId, String functionName, int functionForImg, int functionBackImg, Class functionGoView) {
        this.functionId = functionId;
        this.functionName = functionName;
        if (-1 != functionForImg){
            this.functionForImg = functionForImg;
        }
        if (-1 != functionBackImg){
            this.functionBackImg = functionBackImg;
        }
        this.functionGoView = functionGoView;
    }
    public HomeFunctionBean(int functionId, String functionName, int functionForImg, int functionBackImg, Class functionGoView, int imgW, int imgH) {
        this.functionId = functionId;
        this.functionName = functionName;
        if (-1 != functionForImg){
            this.functionForImg = functionForImg;
        }
        if (-1 != functionBackImg){
            this.functionBackImg = functionBackImg;
        }
        this.functionGoView = functionGoView;
        this.imgW = imgW;
        this.imgH = imgH;
    }
    public HomeFunctionBean(int functionId, String functionName, int functionForImg, int functionBackImg, Class functionGoView, int imgW, int imgH, int backColor) {
        this.functionId = functionId;
        this.functionName = functionName;
        if (-1 != functionForImg){
            this.functionForImg = functionForImg;
        }
        if (-1 != functionBackImg){
            this.functionBackImg = functionBackImg;
        }
        this.functionGoView = functionGoView;
        this.imgW = imgW;
        this.imgH = imgH;
        this.backColor = backColor;
    }

    public int getImgW() {
        return imgW;
    }

    public void setImgW(int imgW) {
        this.imgW = imgW;
    }

    public int getImgH() {
        return imgH;
    }

    public void setImgH(int imgH) {
        this.imgH = imgH;
    }

    public int getFunctionId() {
        return functionId;
    }

    public void setFunctionId(int functionId) {
        this.functionId = functionId;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public int getFunctionForImg() {
        return functionForImg;
    }

    public void setFunctionForImg(int functionForImg) {
        this.functionForImg = functionForImg;
    }

    public int getFunctionBackImg() {
        return functionBackImg;
    }

    public void setFunctionBackImg(int functionBackImg) {
        this.functionBackImg = functionBackImg;
    }

    public Class getFunctionGoView() {
        return functionGoView;
    }

    public void setFunctionGoView(Class functionGoView) {
        this.functionGoView = functionGoView;
    }

    public int getBackColor() {
        return backColor;
    }

    public void setBackColor(int backColor) {
        this.backColor = backColor;
    }
}
